//
//  ItemCell.h
//  table test
//
//  Created by tao故乡的云 on 2017/4/10.
//  Copyright © 2017年 故乡的云. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ItemCell;
@protocol ItemCellDelegate <NSObject>

@optional
- (void)itemCell:(ItemCell *)cell didLongPress:(UILongPressGestureRecognizer *)press;
- (void)itemCell:(ItemCell *)cell didDeleteBtnClick:(UIButton *)btn;
- (void)itemCell:(ItemCell *)cell didOn:(BOOL)on;

@required
- (void)itemCell:(ItemCell *)cell didShowDelete:(BOOL)show;
- (void)itemCellWillTouch:(ItemCell *)cell;
@end


@interface ItemCell : UITableViewCell
@property (nonatomic,weak) UILabel *titleLabel;
@property (nonatomic,weak) UIButton *leftBtn;
@property (nonatomic,weak) id <ItemCellDelegate> delegate;

/// 在cell聚焦时（被点击），告诉上一个cell失去焦点，结束编辑状态
- (void)whenDidTouchEndEditOfPreviousCell;
@end
